# Builds everything except Xenolinux:
# cd xenolinux-<version>-sparse
# ./mkbuildtree <build dir>
-# cd <build dir> && make ARCH=xeno oldconfig dep bzImage
+# cd <build dir> && ARCH=xeno make oldconfig dep bzImage
# (<build dir> should be a vanilla linux tree with matching version)
all:
if you want.
# cd /xeno-1.2.bk/xenolinux-2.4.24
- # make ARCH=xeno oldconfig { or menuconfig, or xconfig, or config }
- # make ARCH=xeno dep bzImage
+ # ARCH=xeno make oldconfig { or menuconfig, or xconfig, or config }
+ # ARCH=xeno make dep bzImage
Assuming the build works, you'll end up with
/xeno-1.2.bk/xenolinux-2.4.24/arch/xeno/boot/xenolinux.gz. This is the
mv linux-${LINUX_VER} xenolinux-${LINUX_VER}
cd xenolinux-${LINUX_VER}
-make ARCH=xeno oldconfig
-make ARCH=xeno dep
-make ARCH=xeno bzImage
-make ARCH=xeno dist || make ARCH=xeno install
-make ARCH=xeno modules
-make ARCH=xeno INSTALL_MOD_PATH=${TOP}/install modules_install
+ARCH=xeno make oldconfig
+ARCH=xeno make dep
+ARCH=xeno make bzImage
+ARCH=xeno make dist || ARCH=xeno make install
+ARCH=xeno make modules
+ARCH=xeno make INSTALL_MOD_PATH=${TOP}/install modules_install
cd ..
# Unless overridden, by default ARCH is equivalent to SUBARCH.
# This will be overriden for Xen and UML builds.
SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
-ARCH := $(SUBARCH)
+ARCH ?= $(SUBARCH)
KERNELPATH=kernel-$(shell echo $(KERNELRELEASE) | sed -e "s/-//g")